package com.example.demo.model.dto;

import lombok.Data;

import javax.validation.constraints.*;

@Data
public class PaperUpdateDTO {
    @NotBlank(message = "论文标题不能为空")
    @Size(max = 500, message = "论文标题长度不能超过500字符")
    private String paperTitle;

    @NotBlank(message = "期刊名称不能为空")
    @Size(max = 200, message = "期刊名称长度不能超过200字符")
    private String journal;

    @Size(max = 50, message = "期号长度不能超过50字符")
    private String issue;

    @Size(max = 50, message = "卷号长度不能超过50字符")
    private String volume;

    @Size(max = 100, message = "页码范围长度不能超过100字符")
    private String pageRange;

    @Size(max = 50, message = "索引级别长度不能超过50字符")
    private String indexLevel;

    @Size(max = 500, message = "论文链接长度不能超过500字符")
    private String paperLink;
}